package com.example.log.facade;
//门面模式
public class FacedeClient{
    private LivingRoomRight livingRoomRight=new LivingRoomRight();
    private BedRoomLight bedRoomLight=new BedRoomLight();
    private HallLight hallLight=new HallLight();

    public void on() {
        livingRoomRight.on();
        bedRoomLight.on();
        hallLight.on();
    }
    public void off() {
        livingRoomRight.off();
        bedRoomLight.off();
        hallLight.off();
    }
}
